package com.ylc.chat.entity;

import java.util.Date;
import java.io.Serializable;

/**
 * @Author: ylc
 * @Description:聊天记录实体类
 */
public class Chatrecord implements Serializable {
    private static final long serialVersionUID = -42387035263540878L;

    private Integer tid;

    private String record;

    private Date date;

    private Integer senduid;

    private Integer receiveuid;

    // 1.文本信息 2.文件信息
    private Integer type;
    public static final Integer TEXTTYPE = 1;
    public static final Integer FILETYPE = 2;

    public Chatrecord() {
    }

    public Chatrecord(String record, Date date, Integer senduid, Integer receiveuid, Integer type) {
        this.record = record;
        this.date = date;
        this.senduid = senduid;
        this.receiveuid = receiveuid;
        this.type = type;
    }

    public Integer getTid() {
        return tid;
    }

    public void setTid(Integer tid) {
        this.tid = tid;
    }

    public String getRecord() {
        return record;
    }

    public void setRecord(String record) {
        this.record = record;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Integer getSenduid() {
        return senduid;
    }

    public void setSenduid(Integer senduid) {
        this.senduid = senduid;
    }

    public Integer getReceiveuid() {
        return receiveuid;
    }

    public void setReceiveuid(Integer receiveuid) {
        this.receiveuid = receiveuid;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

}

